<template>
  <iframe class="iframCom" v-if="curUrl" :src="curUrl" frameborder="0"></iframe>
</template>
<script>
import process from '@/api/process'
export default {
  props: {
    processInstanceId: String,
  },
  data() {
    return {
      curUrl: '',
    };
  },
  computed: {},
  methods: {
    getProcessPicture(){
      process.getProcessPicture(this.processInstanceId).then( res =>{
        this.curUrl = res.data;
        // this.curUrl = 'http://localhost/index.html?processInstanceId=380001&processDefinitionId=XSSL:1:372582';
      })
    }
  },
  created(){
    this.getProcessPicture();
  },
};
</script>
<style lang="less">
.iframCom{
  overflow: hidden;
  width: 100%;
  height: 560px;
}
</style>
